package com.qf.qfuser.feigns;

import com.qf.qfcommons.pojo.R;
import com.qf.qfuser.conf.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/*
    Feign接口类上不支持RequestMapping共性路径的抽取
 */
//@RequestMapping("/order")
@FeignClient(value = "QF-ORDER",/*fallback = OrderServiceFeignFallback.class*/fallbackFactory = OrderServiceFallbackFacotry.class,configuration = FeignConfig.class)
public interface OrderServiceFeign {

    @GetMapping("/order/{id}")
    public R findByUid(@PathVariable("id") Integer id);
}
